package com.ui.basic.controller;

import java.io.IOException;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class IndexController {
	private static final transient org.apache.commons.logging.Log LOGGER = org.apache.commons.logging.LogFactory.getLog(IndexController.class);

	@RequestMapping(value = "/home", method = RequestMethod.GET)
	public String page() throws IOException {
		LOGGER.debug(">>>IndexController.page");
		return "index.page";
	}

	@RequestMapping(value = "/home", method = RequestMethod.POST)
	public String view() throws IOException {
		LOGGER.debug(">>>IndexController.view");
		return "index.view";
	}

	@RequestMapping(value = "/homeview")
	public String viewHome() throws IOException {
		LOGGER.debug(">>>IndexController.viewHome");
		return "index.view";
	}
	
	@RequestMapping(value = "/renderMenu")
	public String renderMenu() throws IOException {
		LOGGER.debug(">>>IndexController.renderMenu");
		return "renderMenu.view";
	}

}